<!-- #shopcart -->
<h2>Giỏ hàng</h2>
{if isset($shopcart) && count($shopcart['items']) > 0}
    <ul class="shop-products">
        {foreach $shopcart['items'] as $item}
            <li id="item-{$item.id}">
                <div class="quantity">{$item.quantity} x</div>
                <div class="name">
                    <a href="dien-thoai/{$item.id_seo}">{$item.name}</a>
                </div>
            <div class="pull-right">
                <span class="price">{$item.total_short}</span>
                <span class="del"><a href="" class="shop-remove-item {id: '{$item.id}'}">Xóa</a></span>
            </div>
            </li>
        {/foreach}
    </ul>

    <div class="total">
        Tổng: <span class="total">{$shopcart.total_formatted}</span>
    </div>
    <div class="buttons">
        <a class="slink" id="shop-clear" href="#">Xóa tất cả</a>
        <a href="thanh-toan" id="shopcart-checkout" class="sb-button">Thanh toán</a>
    </div>
    {else}
    <h3 class="zero-item">Chưa có sản phẩm</h3>
{/if}